package lad02.test16;

public class Test16 {public static void main(String[] args) {
    //对各个类建立上转型对象
    Arithmetic add = new Add();
    System.out.println("加法运算:" + add.arithmetic(14,732));

    Arithmetic subtraction = new Sub();
    System.out.println("减法运算:" + subtraction.arithmetic(5,9));

    Arithmetic multiplication = new Multiplication();
    System.out.println("乘法运算:" + multiplication.arithmetic(4, 8));

    Arithmetic division = new Division();
    System.out.println("除法运算:" + division.arithmetic(5,5));
}
}
